print('===== 健康报告 =====')
print('基础数据')
name = str(input('姓名：'))
age = int(input('年龄：'))
height = float(input('身高（m）：'))
weight = float(input('体重（kg）：'))
everyday_step = int(input('每日步数：'))

BMI = round(weight / (height ** 2), 1)
step_rate = round((everyday_step / 8000) * 100, 1)
fat_rate = round((1.2 * BMI) + (0.23 * age) - 5.4, 1)

print('\n健康指标为：')
print(f'BMI指数: {BMI}')
print(f'步数达标率: {step_rate}%')
print(f'体脂率: {fat_rate}%')

if BMI < 18.5:
    BMI_result = '体重过轻'
elif BMI < 24:
    BMI_result = '健康体重'
else:
    BMI_result = '超重'

if everyday_step >= 8000:
    step_result = '达标！继续保持'
else:
    step_result = f'还差{8000 - everyday_step}步达标'

print('\n评估结果：')
print('[根据BMI的评估]:', BMI_result)
print('[根据步数的评估]:', step_result)